
***************************************************************************
	**** Testing adoption patterns by districts SCI ******
	 **** Performs robustness checks on learning hypothesis
***************************************************************************
use "$datadir\ewallet\maindata.dta", clear

		label var postXtreatment " (Chest Exposure) $\times$ Post"
		label var own_sci " Own SCI index "
		label var wtg_sci_exposure " Weigthed SCI of connected districts "
		
		cap erase "$outputdir_tab\Table_H_16.xls"
		cap erase "$outputdir_tab\Table_H_16.txt"
		cls
		foreach var in lognewfirms {
			reghdfe  `var' c.invshare_sd#c.post   if $filters & own_sci !=. & lang_conc !=.  , a($fe $controls##i.time_id) cluster(district_id)		// baseline
			outreg2 using "$outputdir_tab\Table_H_16", tex(frag)  ctitle("`var'") addtext(District f.e. , $\checkmark$ , Month f.e. , $\checkmark$ , District Controls $\times$ Month f.e. , $\checkmark$ ) dec(3) bracket label nocons nonotes stats(coef se)  append
			
		
			foreach slproxy in lang_conc own_sci {
				reghdfe  `var' c.invshare_sd#c.post  c.invshare_sd#c.post#c.`slproxy' c.`slproxy'#c.post if $filters  & own_sci !=. & lang_conc !=.  , a($fe  $controls##i.time_id) cluster(district_id)
				outreg2 using "$outputdir_tab\Table_H_16", tex(frag) ctitle("`var'") addtext(District f.e. , $\checkmark$ , Month f.e. , $\checkmark$ , District Controls $\times$ Month f.e. , $\checkmark$ ) dec(3) bracket label nocons nonotes stats(coef se)  append
			}
	}
